]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Remove _onKeyPress() function in Notification
authorMarina Zhurakhinskaya <marinaz@redhat.com>
Thu, 13 Jan 2011 23:33:01 +0000 (18:33 -0500)
committerMarina Zhurakhinskaya <marinaz@redhat.com>
Thu, 13 Jan 2011 23:33:01 +0000 (18:33 -0500)
Its usage was removed in commit 4dd4c9f99f528667eb0b571a71ed23f61919f44b -
"Use more actor.grab_key_focus() and less stage.connect('key-press-event')".

js/ui/messageTray.js

index 57f5acf026a9a46081dd6322a1a80b3e92d786a2..1e896a9c5d49a62c64cc5298e454d779aa4f742d 100644 (file)
@@ -706,15 +706,6 @@ Notification.prototype = {
             this.destroy();
     },
 
-    _onKeyPress: function(actor, event) {
-        let symbol = event.get_key_symbol();
-        if (symbol == Clutter.Escape) {
-            Main.messageTray.escapeTray();
-            return true;
-        }
-        return false;
-    },
-
     ungrabFocus: function() {
         if (!this._hasFocus)
             return;